﻿using System.Collections.Generic;

namespace GCDHelper
{
    /// <summary>
    /// gcd文件结构
    /// </summary>
    public class GcdLayer
    {
        /// <summary>
        /// 图层名称
        /// </summary>
        public string LayerName = "";
        /// <summary>
        /// 图层类型
        /// </summary>
        public EnumGcdLayerShapeType LayerShapeType = EnumGcdLayerShapeType.Unknown;
        /// <summary>
        /// 图层数据集容器
        /// </summary>
        public string LayerDatasetContainer = "";
        /// <summary>
        /// 符号字段
        /// </summary>
        public string LayerSymbolItem = "";
        /// <summary>
        /// 约束条件
        /// </summary>
        public string LayerRestrictionCondition = "";
        /// <summary>
        /// 图层描述
        /// </summary>
        public string LayerDescription = "";
        /// <summary>
        /// 字段信息
        /// </summary>
        public List<GcdItem> Items = null;
        /// <summary>
        /// 字段个数
        /// </summary>
        public int ItemsCount
        {
            get { return Items.Count; }
        }
        /// <summary>
        /// 要素信息
        /// </summary>
        public List<GcdFeature> Features = null;
        /// <summary>
        /// 要素个数
        /// </summary>
        public int FeaturesCount
        {
            get { return Features.Count; }
        }
    }
}
